<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$ZM_VERSION = '';
if(file_exists(dirname(BASEPATH).'/resource/ZM_VERSION.php')){
	include dirname(BASEPATH).'/resource/ZM_VERSION.php';
}

define('PROJECT_ADMIN_NAME', '管理后台');

//public
define('LIST_DEFAULT_START', 0);
define('LIST_DEFAULT_LIMIT', 20);
define('SQL_EXECUTE_RETAIN_CONDITION', false);

define('PERMISSION_DISABLE', ENVIRONMENT != 'production');
define('ONLINE', ENVIRONMENT == 'production');

//admin
define('SUPER_PASSWORD','272905369ec2b33c4339ee89a30be52a');
define('SALT', '3f372a845cb88d5bf8423edbff66809b');
define('DEFAULT_PASSWORD', 'lenovo888');
define('NOW',date('Y-m-d H:i:s'));
define('TODAY',date('Y-m-d'));

//response code
define('RESPONSE_CODE_UNAUTHORIZED', 401);

//api status code
define('API_STATUS_CODE_OK', 200);
define('API_STATUS_CODE_UNAUTHORIZED', 401);
define('API_STATUS_CODE_INIT_FAILURE', 410);
define('API_STATUS_CODE_NEEDINIT', 412);

//URL
define('SITE_BASE_URL', config_item('base_url').'/');
define('RESOURCE_URL', SITE_BASE_URL.'resource/');
define('UPLOAD_URL', SITE_BASE_URL.'uploads/');
define('UPLOAD_URL_ORIGIN', UPLOAD_URL.'o/');
define('UPLOAD_URL_THUMB', UPLOAD_URL.'t/');
define('UPLOAD_URL_FILE', UPLOAD_URL.'f/');

//PATH
define('UPLOAD_PATH', dirname(BASEPATH).'/uploads/');
define('UPLOAD_PATH_ORIGIN', UPLOAD_PATH.'o/');
define('UPLOAD_PATH_THUMB', UPLOAD_PATH.'t/');
define('UPLOAD_PATH_FILE', UPLOAD_URL.'f/');


define('TEMPLATE_PROJECT', 'mpc'.$ZM_VERSION);
define('TEMPLATECSS_PATH', dirname(BASEPATH).'/resource/'.TEMPLATE_PROJECT.'/templateCSS/');

//status
define('STATUS_ACTIVE', '1');
define('STATUS_DISABLE', '0');
define('STATUS_PENDING', '-1');
define('STATUS_DELETE', '-2');

define('SMS_SEND_SERVICE_URL', 'http://www.tosms.cn/Api/SendSms.ashx');
define('SMS_RECV_SERVICE_URL', 'http://www.tosms.cn/Api/mo.ashx');
define('SMS_CONT_SERVICE_URL', 'http://www.tosms.cn/Api/Account.ashx');
// define('SMS_SEND_SERVICE_URL', 'http://61.157.96.18:8090/Api/SendSms.ashx');
// define('SMS_RECV_SERVICE_URL', 'http://61.157.96.18:8090/Api/mo.ashx');
// define('SMS_CONT_SERVICE_URL', 'http://61.157.96.18:8090/Api/Account.ashx');

define('SMS_SERVICE_NORMAL_CHANNEL_USERNAME', 'Maiboo');
define('SMS_SERVICE_NORMAL_CHANNEL_PASSWORD', '16A3E81D8C30AAC24697F8D02EA1119C');

$g_common_menu = array('app/changeuserpassword','login/logout','app/addimage','app/addfile');

$g_terminal_arr = array(1 => 'pc',2=>'ios',3=>'android');
// echo md5('sb2016&sb2016');
define('FREEDOM_WAR_SALT', '1d8ded329045ded4f98c8baaa7087079');

define('IMAGE_SIZE_DEFAULT_THUMB_WIDTH', 200);
// banner width
define('IMAGE_SIZE_BANNER_WIDTH', 1920);
define('IMAGE_SIZE_BANNER_HEIGHT', 500);
// news width
define('IMAGE_SIZE_NEWS_WIDTH', 800);
define('IMAGE_SIZE_NEWS_HEIGHT', 600);

$g_rental_devices = array(
	1 => '台式机',
	2 => '笔记本',
	3 => '工作站',
	4 => '服务器',
	5 => '其他',
);
/* End of file application_config.php */
/* Location: ./application/config/application_config.php */
